home *** CD-ROM | disk | FTP | other *** search
- #ifndef _DL_Drawtool
- #pragma interface
- #define _DL_Drawtool 1
- #include <stddef.h>
- #include <Classlib.h>
-
- class DrawTool
- {
- protected:
- int Color_;
- int Style_;
- public:
- DrawTool(int style = 1, int color = 15);
- void colour(int);
- void style(int);
- };
-
- enum brush_type{WHITE_BRUSH, LGREY_BRUSH, GREY_BRUSH,
- DGREY_BRUSH, BLACK_BRUSH, NULL_BRUSH};
-
- class Pen : public DrawTool
- {
- int User_;
- int StartStyle_;
- int EndStyle_;
- int Width_;
- public:
- Pen(int c = 15, int s = 1, int w = 1, int pat = -1);
- Pen(Pen&);
- void Select(GraphPort&);
- int width();
- void setWidth(int);
- };
-
- class Brush : public DrawTool
- {
- int Interior;
- int Planes;
- int User_[16];
- public:
- Brush(int c = 0, int s = 0, int i = 0, int *u = NULL);
- Brush(Brush&);
- void Select(GraphPort&);
- };
-
- extern Brush& StockBrush(brush_type);
-
- #endif
-